package org.lucky_common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_login_info")
public class LoginInfo extends Model<LoginInfo> implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @TableField("username")
    private String username;
    @TableField("salt")
    private String salt;
    @TableField("password")
    private String password;
    @TableField("email")
    private String email;
    /**
     * 0 代表管理员 1 用户
     */
    @TableField("type")
    private Integer type;
    /**
     * 0 不可以用 1 可用
     */
    @TableField("disable")
    private Integer disable;
    @TableField("headImg")
    private String headImg;
}
